home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3978 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.1 KB  |  36 lines

  1. Newsgroups: comp.lang.c++
  2. Path: news.mathworks.com!gatech!psinntp!psinntp!psinntp!psinntp!ensco!news
  3. From: Matt McGarvey <mcgarvey@ensco.com>
  4. Subject: MFC C++: OnIdle() is OnHold during Modal Dialog
  5. X-Nntp-Posting-Host: signalboy.hq.ensco.com
  6. Content-Type: text/plain; charset=us-ascii
  7. Message-ID: <DLt4Jo.D2t@boole.FL.ENSCO.COM>
  8. Sender: news@boole.FL.ENSCO.COM
  9. Content-Transfer-Encoding: 7bit
  10. Organization: ENSCO INC
  11. Mime-Version: 1.0
  12. Date: Fri, 26 Jan 1996 21:18:59 GMT
  13. X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
  14.  
  15. I need to do constant backgroung processing in an MFC Visual C++
  16. MS Windows application at all times.
  17.  
  18. I overrode the CWinApp classes OnIdle function to do background
  19. processing there.
  20.  
  21. It works fine except when a Modal Dialog is popped up.
  22. OnIdle is never called during such a time, when I need it to be.
  23.  
  24. (only tested this using the debugger. Just beginning to write
  25. MS Windows apps and I don't know of an easy way to create a simple
  26. text debug window).
  27.  
  28. What is the best way to over-ride this behavoir without
  29. hacking away at the MFC source.
  30.  
  31. Thanks,
  32. Matt
  33.  
  34.  
  35.  
  36.